<template>
  <div id="leftNav">
    <el-menu router default-active="2"
     class="el-menu-vertical-demo"
      @open="handleOpen" @close="handleClose" 
      background-color="#545c64"
       text-color="#fff"
       active-text-color="#ffd04b">
      <el-menu-item index="/home">
          <i class="el-icon-location"></i>
          <span>首页</span>
      </el-menu-item>
      <el-menu-item index="/home/table">
          <i class="iconfont icon-canzhuoguanli"></i>
          <span>餐桌管理</span>
      </el-menu-item>
      <el-menu-item index="/home/menu">
        <i class="el-icon-document"></i>
        <span slot="title">菜品管理</span>
      </el-menu-item>
      <el-menu-item index="/home/diancai">
        <i class="el-icon-setting"></i>
        <span slot="title">点菜管理</span>
      </el-menu-item>
      <el-menu-item index="/home/vip">
        <i class="iconfont icon-huiyuanguanli"></i>
        <span slot="title">会员管理</span>
      </el-menu-item>
      <el-menu-item index="/home/shouyin">
        <i class="iconfont icon-shouyin"></i>
        <span slot="title">收银</span>
      </el-menu-item>
      <el-menu-item index="/home/people">
        <i class="iconfont icon-renyuanguanli"></i>
        <span slot="title">人员管理</span>
      </el-menu-item>
    </el-menu>
  </div>
</template>

<script>
export default {
  name: 'mynav',
  data() {
    return {}
  },
  methods: {
    changeNav(index) {
      this.changeNum = index
    },
    handleOpen(key, keyPath) {
      console.log(key, keyPath);
    },
    handleClose(key, keyPath) {
      console.log(key, keyPath);
    }
  }
}
</script>

<style lang='less' scoped>
</style>